package com.gz.servlet_my;

import com.gz.tomcat.http.GzRequest;
import com.gz.tomcat.http.GzResponse;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;

//相比原先Servlet接口里面的5个方法，我这里只保留了3个并简化(原先有context这类的)
public interface GzServlet {
    void init() throws ServletException;


    void service(GzRequest request, GzResponse response) throws IOException;


    void destroy();
}
